<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>媒体查询</title>
    <style>
        /* 这句话的意思是: 在我们屏幕上 并且 最大宽度是 800像素 设置我们想要的样式 */
        @media screen and (max-width: 800px) {
            body {
                background-color: aquamarine;
            }
        }
        @media screen and (min-width: 600px) and (max-width: 700px) {
            body {
                background-color: blue;
            }
        }
        @keyframes xiong {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(500px);
            }
        }
        .box {
            width: 64px;
            height: 64px;
            background: red url(../images/png/aichong02.png) no-repeat;
            animation-name: xiong;
            animation-duration: 5s;
        }
    </style>
</head>
<body>
    <div class="box">
    </div>
</body>
</html>